I'm trying to get the "path" of a object, example:
Object1 :{
sub1: {
sub2: {}
}
}
my goal is to get the names like this "Object1.sub1.sub2"
if I set this on a function like this:
getStringPath(Object1.sub1.sub2)
the expected result would be this
"Object1.sub1.sub2"
is there any way to archieve this?
thanks